package cn.tedu.csmall.passport.service.Impl;

import cn.tedu.csmall.passport.ex.ServiceException;
import cn.tedu.csmall.passport.mapper.RoleMapper;
import cn.tedu.csmall.passport.pojo.vo.RolelistVO;
import cn.tedu.csmall.passport.service.IRoleService;
import cn.tedu.csmall.passport.web.JsonResult;
import cn.tedu.csmall.passport.web.ServiceCode;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class RoleServiceImpl implements IRoleService, ServiceCode {

    @Autowired
    RoleMapper mapper;

    @Override
    public List<RolelistVO> getRoleList() {
        log.debug("开始处理【查询业务】");
        return mapper.listRole();
    }
}
